
package com.idea.rdftree;

import javax.swing.ImageIcon;
import javax.swing.tree.TreeNode;

import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.RDFNode;
import com.hp.hpl.jena.rdf.model.Statement;


public interface RdfTreeNode extends TreeNode {

	public static final int ROOT = 0;
	public static final int MODEL = 1;
	public static final int RESOURCE = 2;
	public static final int STATEMENT = 3;
	public static final int LITERAL = 4;

	public RDFNode getRdfNode();

	public void setRdfValue(String string);
	public String getNodeTypeName();
	public String getRdfValue();

	public RdfNodeMap getNodeMap();

	public Model getModel();
	public void setModel(Model model);

	public String getModelFilename();
	public void setModelFilename(String filename);

	public Statement getParentStatement();

	public int getNodeType();
	public ImageIcon getIcon();

	public boolean isDirty();
	public void setDirty(boolean dirty);

	public void deleteRequest();
	public void delete();
	public void renameRequest();
	public void rename(String newName);

	public boolean isValueEditable();

}
